import { request } from '@vipl520/utils'

const path = '/gs_gold/admin.project/'

export function getProjectByIds(ids, source) {
  return request(
    {
      url: '/gs_gold/app.project/getProjectByIds',
      method: 'post',
      data: { ids, source }
    },
    {
      repeat_request_cancel: false
    }
  )
}

export function getDiy(pid) {
  return request(
    {
      url: path + 'getDiy',
      method: 'post',
      data: { pid }
    },
    {
      code_error_show: true
    }
  )
}
export function setDiy(pid, diyData) {
  return request(
    {
      url: path + 'setDiy',
      method: 'post',
      data: { pid, diyData }
    },
    {
      code_success_show: true
    }
  )
}
